package pub.gll.onepeas.libbase.track.util

import pub.gll.onepeas.libbase.util.ThreadExecutors


/**
 * <pre>
 *     author : whg
 *     e-mail : guanhuawei@kkworld.com
 *     time   : 2021/12/03
 *     desc   : 曝光线程专用
 *     version: 1.0
 * </pre>
 */
internal object KKExposureThreadUtil {

    private val sExecutorSingle = ThreadExecutors.newFixedThreadPool(1, "view_exposure")

    /**
     * 非UI单线程处理
     * @param command [Runnable]
     */
    fun handlerExposureMessage(command: Runnable) {
        sExecutorSingle.execute {
            try {
                command.run()
            } catch (e: Throwable) {
//                ErrorReporter.get().reportAndThrowIfDebug(e)
            }
        }
    }

}